#!/bin/sh
echo "import data from hdfs......"
currentdate=`date +%Y-%m-%d`
echo "current date: $currentdate"
hive -e "use homework;
load data inpath '/user_clicks/$currentdate/*'
overwrite into table user_clicks
partition(dt='$currentdate');"